import request from '@/utils/request'
const api_name = '/eduservice/frontcourse'
export default {
  getPageList(page, limit,searchObj) {   
    return request({
      url: `${api_name}/getPageList/${page}/${limit}`,
      method: 'post',
      data: searchObj
    })
  },
  getSubjectInfo() {   
    return request({
      url: `/eduservice/subject/getAllSubject`,
      method: 'get'
    })
  },
  getCourseInfo(id){
    return request({
        url: `${api_name}/getCouresInfo/${id}`,
        method: 'get'
      })
  }
}